/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.customer;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 客户Entity
 * @author lv
 * @version 2021-02-25
 */
@Table(name="t_customer_showroom", alias="a", columns={
		@Column(name="showroom_id", attrName="showroomId", label="ID", isPK=true),
		@Column(name="showroom_name", attrName="showroomName", label="展厅名称", queryType=QueryType.LIKE),
		@Column(name="showroom_type", attrName="showroomType", label="展厅类型"),
		@Column(name="acreage", attrName="acreage", label="面积", comment="面积（㎡）"),
		@Column(name="remarks", attrName="remarks", label="备注", queryType=QueryType.LIKE),
		@Column(name="customer_id", attrName="customerId.customerId", label="客户ID"),
	}, orderBy="a.showroom_id ASC"
)
public class CustomerShowroom extends DataEntity<CustomerShowroom> {
	
	private static final long serialVersionUID = 1L;
	private String showroomId;		// ID
	private String showroomName;		// 展厅名称
	private String showroomType;		// 展厅类型
	private String acreage;		// 面积（㎡）
	private Customer customerId;		// 客户ID 父类
	
	public CustomerShowroom() {
		this(null);
	}


	public CustomerShowroom(Customer customerId){
		this.customerId = customerId;
	}
	
	public String getShowroomId() {
		return showroomId;
	}

	public void setShowroomId(String showroomId) {
		this.showroomId = showroomId;
	}
	
	@Length(min=0, max=100, message="展厅名称长度不能超过 100 个字符")
	public String getShowroomName() {
		return showroomName;
	}

	public void setShowroomName(String showroomName) {
		this.showroomName = showroomName;
	}
	
	@Length(min=0, max=2, message="展厅类型长度不能超过 2 个字符")
	public String getShowroomType() {
		return showroomType;
	}

	public void setShowroomType(String showroomType) {
		this.showroomType = showroomType;
	}
	
	@Length(min=0, max=100, message="面积长度不能超过 100 个字符")
	public String getAcreage() {
		return acreage;
	}

	public void setAcreage(String acreage) {
		this.acreage = acreage;
	}
	
	@Length(min=0, max=64, message="客户ID长度不能超过 64 个字符")
	public Customer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Customer customerId) {
		this.customerId = customerId;
	}
	
}